package com.example.beautymakeup.dao;

import com.example.beautymakeup.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AdminDao{
    @Select("select * from admin where username = #{username} and password = #{password};")
    Admin login(Admin admin);

    @Update("update admin set password = #{password} where uid = #{uid};")
    int update(Admin admin);
}
